<template>
    <div class="l-user-bar">
      <span class="l-user-title">{{name}}</span>
      <span class="l-user-info">{{val}}</span>
    </div>
</template>

<script>
    export default {
        name: "user-bar",
        props: {
          name: {

          },
          val: {

          }
        }
    }
</script>

<style lang="less" scoped>
    .l-user-bar {
      display: flex;
      width: 700px;
      padding: 20px;
      box-sizing: border-box;
      font-size: 28px;
      font-weight: bold;
      color: #9a7136;
      border: 1px solid #9a7136;
      margin: 0 auto 20px auto;

      .l-user-title {
        display: inline-block;
        padding-right: 70px;
        margin-right: 70px;
        position: relative;
        height: 70px;
        line-height: 70px;
        min-width: 120px;

        &:after {
          content: '';
          position: absolute;
          top: 50%;
          right: 0;
          transform: translateY(-50%);
          width: 2px;
          height: 30px;
          background-color: #9a7136;
        }
      }

      .l-user-info {
        width: 440px;
        line-height: 70px;
        word-wrap: break-word;
        padding-right: 40px;
        box-sizing: border-box;
      }

      &.l-id {
        .l-user-info {
          width: 440px;
          line-height: 40px;
          word-wrap: break-word;
          padding-right: 40px;
          box-sizing: border-box;
        }
      }
    }
</style>
